<%@ page import="cook.Dish" %>



			<div class="control-group fieldcontain ${hasErrors(bean: dishInstance, field: 'dishComponents', 'error')} ">
				<label for="dishComponents" class="control-label"><g:message code="dish.dishComponents.label" default="Dish Components" /></label>
				<div class="controls">
					<g:select name="dishComponents" from="${cook.DishComponent.list()}" multiple="multiple" optionKey="id" size="5" value="${dishInstance?.dishComponents*.id}" class="many-to-many"/>
					<span class="help-inline">${hasErrors(bean: dishInstance, field: 'dishComponents', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: dishInstance, field: 'name', 'error')} ">
				<label for="name" class="control-label"><g:message code="dish.name.label" default="Name" /></label>
				<div class="controls">
					<g:textField name="name" value="${dishInstance?.name}"/>
					<span class="help-inline">${hasErrors(bean: dishInstance, field: 'name', 'error')}</span>
				</div>
			</div>

			<div class="control-group fieldcontain ${hasErrors(bean: dishInstance, field: 'price', 'error')} required">
				<label for="price" class="control-label"><g:message code="dish.price.label" default="Price" /><span class="required-indicator">*</span></label>
				<div class="controls">
					<g:field type="number" name="price" step="any" required="" value="${dishInstance.price}"/>
					<span class="help-inline">${hasErrors(bean: dishInstance, field: 'price', 'error')}</span>
				</div>
			</div>
			
			<g:render template="ingredientItem" model="['dishInstance':dishInstance]" /> 

			

